<?php

function digui( $num ){
	if( $num == 1 ){
		return 1;
	}
	return $num * digui( $num - 1 );
}

var_dump( digui( 5 ) );

?>